package edu.zut.cs.software.cms.admin.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.cms.admin.domain.Admin;
import edu.zut.cs.software.cms.admin.service.AdminManager;
import edu.zut.cs.software.cms.base.web.spring.controller.GenericController;

/**
 * 
 * @author 清风依旧
 *
 */
@Controller
@RequestMapping("/admin")

public class AdminController extends GenericController<Admin, Long, AdminManager> {
	AdminManager adminManager;

	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		String result = "/admin/index";
		return result;
	}

	@Autowired
	public void setAdminManager(AdminManager adminManager) {
		this.adminManager = adminManager;
		this.manager = this.adminManager;
	}
}
